package com.exp.model;

import com.jfinal.plugin.activerecord.Model;
import com.jfinal.plugin.activerecord.Page;

public class User extends Model<User> {
	public static final User dao = new User();

	public Page<User> paginate(int pageNumber, int pageSize, String select,
			String exSelect) {
		return super.paginate(pageNumber, pageSize, select == null ? "select *"
				: select, exSelect == null ? "from t_user order by id asc"
				: exSelect);
	}
}
